<?php /* Smarty version Smarty-3.1.16, created on 2016-03-20 15:51:27
         compiled from "E:\workspacePhp\phpb2cdemo\manage\page\systemmanage\systemusermanage\userManage.html" */ ?>
<?php /*%%SmartyHeaderCode:2077256cda0c852e660-38195322%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '701bac2407f4291fa8f322f51a44d35c308d0ba3' => 
    array (
      0 => 'E:\\workspacePhp\\phpb2cdemo\\manage\\page\\systemmanage\\systemusermanage\\userManage.html',
      1 => 1458220459,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2077256cda0c852e660-38195322',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.16',
  'unifunc' => 'content_56cda0c8590f22_64590293',
  'variables' => 
  array (
    'charset' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56cda0c8590f22_64590293')) {function content_56cda0c8590f22_64590293($_smarty_tpl) {?><!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $_smarty_tpl->tpl_vars['charset']->value;?>
" />
        <title>系统用户管理</title>
        <?php echo getCommon('');?>
 
		<?php echo getPlugSingle('easyui');?>

		<?php echo getPlugSingle('ztree');?>

		<?php echo getPlugSingle('uploadify');?>

	</head>
    <body>
    	<style>
    		
    			.uploadAvaterBtn{border:1px solid #ddd;height:20px;}
    			#showPhoto{width:100px;height:100px;margin-top:5px;display:table-cell;text-align:center;vertical-align:middle;}
    			#showUpdateUserPhoto{width:100px;height:100px;margin-top:5px;display:table-cell;text-align:center;vertical-align:middle;}
    		
    	</style>
    	<script type="text/javascript">
	    	/**
	    	 * @author yukaizhao
	    	 */
	    	 
	    	$.extend($.fn.validatebox.defaults.rules, {
	    	    /*必须和某个字段相等*/
	    	    equalTo: {
	    	        validator:function(value,param){
	    	            return $(param[0]).val() == value;
	    	        },
	    	        message:'字段不匹配'
	    	    },
	    	    isRepeatLoginId:{
	    	    	validator:function(value,param){
	    	    		var result = false;
	    	    		$.ajax({  
							type : "post",  
							url : "checkLoginIdIsExsit",  
							data : {'userLoginId':value},  
							async : false,  
							success : function(data){  
								eval('var dataJson = '+data);
								result = dataJson.result;
						    }
						});
	    	    		if(result==1)
    	    				return true;
    	    			else
    	    				return false;
	    	    	},
	    	    	message:'该用户已经被注册'
	    	    }
	    	});
	    	
    	</script>
    	<div id="setUserMenuJuris" class="easyui-dialog" title="设置用户菜单权限" closed="true" style="width:300px;height:400px;padding:10px"
    	data-options="
				iconCls: 'icon-edit',
				buttons: [{
					text:'保存',
					iconCls:'icon-ok',
					handler:function(){
						var treeObj = $.fn.zTree.getZTreeObj('jurisUserMenuTree');
						var nodes = treeObj.transformToArray(treeObj.getNodes());
						//把选中数据传入后台保存起
						var selectedNodes = '';
						for (var i = 0; i < nodes.length; i++) {
							var checked = nodes[i].checked;
							if(checked)
								selectedNodes+=nodes[i].id+',';
						} 
						$.post('addUserMenus',{
							'userMenuIds':selectedNodes,
							'userId':$('#setUserMenuJuris input[name=userId]').val()
						},function(data){
							eval('var dataJson='+data);
							if(dataJson.result==true){
								$.messager.show({
									title : '提示',
									msg :'您已成功设置该用户的菜单权限！'
								});
								$('#setUserMenuJuris').dialog('close');
							}else{
								$.messager.show({
									title : '提示',
									msg :'修改失败，请重试！'
								});
							}
						});
					}
				},{
					text:'取消',
					handler:function(){
						$('#setUserMenuJuris').dialog('close');
					}
				}],
				onResize:function(){
					$(this).dialog('center');
				}
			">
			<input name="userId" type="hidden"/>
			<form id="jurisUserMenuTree" class="ztree">
		    </form>
		</div>
		<div id="setUserRole" class="easyui-dialog" title="设置用户角色信息" closed="true" style="width:300px;height:400px;padding:10px"
    	data-options="
				iconCls: 'icon-edit',
				buttons: [{
					text:'保存',
					iconCls:'icon-ok',
					handler:function(){
						var treeObj = $.fn.zTree.getZTreeObj('userRoleMenuTree');
						var nodes = treeObj.transformToArray(treeObj.getNodes());
						//把选中数据传入后台保存起
						var selectedNodes = '';
						for (var i = 0; i < nodes.length; i++) {
							var checked = nodes[i].checked;
							if(checked)
								selectedNodes+=nodes[i].id+',';
						} 
						$.post('addUserRoles',{
							'userRoleIds':selectedNodes,
							'userId':$('#setUserRole input[name=userId]').val()
						},function(data){
							eval('var dataJson='+data);
							if(dataJson.result==true){
								$.messager.show({
									title : '提示',
									msg :'您已成功添加该用户的菜单权限！'
								});
								$('#setUserRole').dialog('close');
							}else{
								$.messager.show({
									title : '提示',
									msg :'修改失败，请重试！'
								});
							}
						});
					}
				},{
					text:'取消',
					handler:function(){
						$('#setUserRole').dialog('close');
					}
				}],
				onResize:function(){
					$(this).dialog('center');
				}
			">
			<input name="userId" type="hidden"/>
			<form id="userRoleMenuTree" class="ztree">
		    </form>
		</div>
    	<div id="addUser" class="easyui-dialog" title="添加新用户" closed="true" style="width:300px;height:450px;padding:10px"
    	data-options="
				iconCls: 'icon-add',
				buttons: [{
					text:'确认',
					iconCls:'icon-ok',
					handler:function(){
						$('#addUserForm').form('submit', {
							url : 'addUser',
							onSubmit : function() {
								return $(this).form('validate');//对数据进行格式化
							},
							success : function(data) {
								eval('var dataJson='+data);
								if(dataJson.result==true){
									$.messager.show({
										title : '提示',
										msg :'您已成功创建用户'
									});
									$('#addUser').dialog('close');
									$('#userTable').datagrid();
								}else{
									$.messager.show({
										title : '提示',
										msg :'创建失败请重试！'
									});
								}
							}
						},'json');
					}
				},{
					text:'取消',
					handler:function(){
						$('#addUser').dialog('close');
					}
				}],
				onResize:function(){
					$(this).dialog('center');
				}
			">
			<form id="addUserForm" method="post" enctype="multipart/form-data">
		    	<table cellpadding="5">
		    		<tr>
		    			<td>登录名(可中文):</td>
		    			<td><input class="easyui-textbox" type="text" name="userLoginId" required="true" validType="isRepeatLoginId"></input></td>
		    		</tr>
		    		<tr>
		    			<td>输入密码:</td>
		    			<td><input id="password" class="easyui-textbox" type="password" name="userPwd" data-options="required:true,validType:'length[6,20]'"></input></td>
		    		</tr>
		    		<tr>
		    			<td>确认密码:</td>
		    			<td><input id="repassword" class="easyui-textbox" type="password" name="subject" data-options="required:true" validType="equalTo['#password']" invalidMessage="两次输入密码不匹配"></input></td>
		    		</tr>
		    		<tr>
		    			<td>手机号码:</td>
		    			<td><input class="easyui-textbox" type="text" name="userPhone"></input></td>
		    		</tr>
		    		<tr>
		    			<td>电话号码:</td>
		    			<td><input class="easyui-textbox" type="text" name="userTel"></input></td>
		    		</tr>
		    		<tr>
		    			<td>性别:</td>
		    			<td>
		    				<select class="easyui-combobox" panelHeight="auto" name="userSex" data-options="required:true">
		    					<option value="1">男</option>
		    					<option value="2">女</option>
		    					<option value="3">其他</option>
		    				</select>
		    			</td>
		    		</tr>
		    		<tr>
		    			<td>QQ号码:</td>
		    			<td><input class="easyui-textbox" type="text" name="userQQ"></input></td>
		    		</tr>
		    		<tr>
		    			<td>email:</td>
		    			<td><input class="easyui-textbox" type="text" name="userEmail" validType="email"></input></td>
		    		</tr>
		    		<tr>
		    			<td>上传头像:</td>
		    			<td><button id="uploadAvater" class="uploadAvater" style="height:20px;"></button></td>
		    		</tr>
		    		<tr>
		    			<td>&nbsp;</td>
		    			<td>
		    				<input name="userAvatarId" type="hidden"/>
		    				<div id="showPhoto"></div>
		    			</td>
		    		</tr>
		    	</table>
		    </form>
		</div>
		<div id="updateUserPwd" class="easyui-dialog" title="修改用户密码" closed="true" style="width:260px;height:170px;padding:10px"
    	data-options="
				iconCls: 'icon-add',
				buttons: [{
					text:'确认',
					iconCls:'icon-ok',
					handler:function(){
						$('#updateUserPwdForm').form('submit', {
							url : 'updateUserInfo',
							onSubmit : function() {
								return $(this).form('validate');//对数据进行格式化
							},
							success : function(data) {
								eval('var dataJson='+data);
								if(dataJson.result==true){
									$.messager.show({
										title : '提示',
										msg :'您已成功修改该用户密码!'
									});
									$('#updateUserPwd').dialog('close');
								}else{
									$.messager.show({
										title : '提示',
										msg :'修改失败请重试！'
									});
								}
							}
						});
					}
				},{
					text:'取消',
					handler:function(){
						$('#updateUserPwd').dialog('close');
					}
				}],
				onResize:function(){
					$(this).dialog('center');
				}
			">
			<form id="updateUserPwdForm" method="post">
		    	<table cellpadding="5">
		    		<tr>
		    			<td>输入密码:</td>
		    			<td><input type="hidden" name="userId"/><input id="password2" class="easyui-textbox" type="password" name="userPwd" data-options="required:true,validType:'length[6,20]'"></input></td>
		    		</tr>
		    		<tr>
		    			<td>确认密码:</td>
		    			<td><input id="repassword2" class="easyui-textbox" type="password" name="subject" data-options="required:true" validType="equalTo['#password2']" invalidMessage="两次输入密码不匹配"></input></td>
		    		</tr>
		    	</table>
		    </form>
		</div>
		<div id="updateUser" class="easyui-dialog" title="修改用户" closed="true" style="width:300px;height:450px;padding:10px"
    	data-options="
				iconCls: 'icon-add',
				buttons: [{
					text:'确认',
					iconCls:'icon-ok',
					handler:function(){
						$('#updateUserForm').form('submit', {
							url : 'updateUserInfo',
							onSubmit : function() {
								return $(this).form('validate');//对数据进行格式化
							},
							success : function(data) {
								eval('var dataJson='+data);
								if(dataJson.result==true){
									$.messager.show({
										title : '提示',
										msg :'您已成功修改用户'
									});
									$('#updateUser').dialog('close');
									$('#userTable').datagrid();
								}else{
									$.messager.show({
										title : '提示',
										msg :'修改失败请重试！'
									});
								}
							}
						});
					}
				},{
					text:'取消',
					handler:function(){
						$('#updateUser').dialog('close');
					}
				}],
				onResize:function(){
					$(this).dialog('center');
				}
			">
			<form id="updateUserForm" method="post">
		    	<table cellpadding="5">
		    		<tr>
		    			<td>登录名(可中文):</td>
		    			<td><input type="hidden" name="userId"/><input class="easyui-textbox" type="text" name="userLoginId" data-options="prompt:'请输入2到10个字内',required:true,validType:'length[2,10]'"></input></td>
		    		</tr>
		    		<tr>
		    			<td>手机号码:</td>
		    			<td><input class="easyui-textbox" type="text" name="userPhone"></input></td>
		    		</tr>
		    		<tr>
		    			<td>电话号码:</td>
		    			<td><input class="easyui-textbox" type="text" name="userTel"></input></td>
		    		</tr>
		    		<tr>
		    			<td>性别:</td>
		    			<td>
		    				<select class="easyui-combobox" panelHeight="auto" name="userSex" data-options="required:true">
		    					<option value="1">男</option>
		    					<option value="2">女</option>
		    					<option value="3">其他</option>
		    				</select>
		    			</td>
		    		</tr>
		    		<tr>
		    			<td>QQ号码:</td>
		    			<td><input class="easyui-textbox" type="text" name="userQQ"></input></td>
		    		</tr>
		    		<tr>
		    			<td>email:</td>
		    			<td><input class="easyui-textbox" type="text" name="userEmail" validType="email"></input></td>
		    		</tr>
		    		<tr>
		    			<td>上传头像:</td>
		    			<td><button id="uploadUpdateAvater" class="uploadAvater" style="height:20px;"></button></td>
		    		</tr>
		    		<tr>
		    			<td>&nbsp;</td>
		    			<td>
		    				<input name="userAvatarId" type="hidden"/>
		    				<div id="showUpdateUserPhoto"></div>
		    			</td>
		    		</tr>
		    	</table>
		    </form>
		</div>
        <table id="userTable" title="用户管理" style="width:100%;"
				data-options="rownumbers:true,singleSelect:true,pagination:true,url:'queryUserInfo',method:'post',toolbar:'#userTableTool',multiSort:false">
			<thead>
				<tr>
					<th data-options="field:'userId'" width="10%">用户ID</th>
					<th data-options="field:'userLoginId'" width="10%">登录帐号</th>
					<th data-options="field:'userPhone',align:'left',sortable:true" width="10%">手机号码</th>
					<th data-options="field:'userTel',align:'left'" width="10%">电话号码</th>
					<th data-options="field:'userEmail',align:'left'" width="10%">邮箱</th>
					<th data-options="field:'userSex',align:'left',formatter:readSex" width="5%">性别</th>
					<th data-options="field:'userState',align:'left',formatter:formatState" width="5%">当前状态</th>
					<th data-options="field:'userCreateTime',sortable:true" width="10%">注册时间</th>
					<th data-options="field:'_op',align:'left',formatter:rowOp" width="29%">操作</th>
				</tr>
			</thead>
		</table>
		<div id="userTableTool" style="padding:5px;height:auto">
			<div style="margin-bottom:5px">
				<a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="addUser();">添加帐号</a>
				<a href="#" class="easyui-linkbutton" iconCls="icon-reload" plain="true" onclick="javascript:window.location.reload()">刷新</a>
			</div>
			<div>
				<form id="queryTableInfo" method="post">
					登录帐号: <input class="easyui-textbox" name="userLoginId" style="width:80px">
					创建时间: <input class="easyui-datebox" name="userCreateTimeStart" style="width:80px">
					到: <input class="easyui-datebox" name="userCreateTimeEnd" style="width:80px">
					当前状态: 
					<select class="easyui-combobox" name="userState" panelHeight="auto" style="width:100px">
						<option value="4">所有</option>
						<option value="1">启用</option>
						<option value="2">锁定</option>
						<option value="3">被查封</option>
					</select>
					<a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="queryTableInfo()">搜索</a>
					<a href="#" class="easyui-linkbutton" iconCls="icon-redo" onclick="clearQueryForm()">清空条件</a>
				</form>
			</div>
		</div>
		<script type="text/javascript">
			var SITE_GLOBAL_URL = '<?php echo @constant('SITE_GLOBAL_URL');?>
';
			var sessionId = '<?php echo $_COOKIE['sessionId'];?>
';
		</script>
		<script type="text/javascript">
			
			//状态解释器
			function formatState(val,row){
				switch(val){
					case '1':
						return '<span style="color:green;">有效</span>';
						break;
					case '2':
						return '<span style="color:#FF5300;">锁定</span>';
						break;
					case '3':
						return '<span style="color:#FF5300;">查封</span>';
						break;
					default:
						return '<span style="color:#333333;">-</span>';
						break;
				}
			}
			
			//添加新用户
			function addUser(){
				//每次打开前都要清除先前填写的信息
				$('#addUserForm').form('clear');
				$('#addUser').dialog('open');
				$("#uploadAvater").uploadify({
					'height': 20,
					'fileObjName': 'files',
					'multi': false,
					'formData': {'albumId':3,'photoIsOffic':1,'photoType':4,'sessionId':sessionId},
					'buttonText': '　　上传头像',
					'buttonClass': 'uploadAvaterBtn icon-image',
					'swf': SITE_GLOBAL_URL + '/plug/uploadify/uploadify.swf',
					'uploader': SITE_GLOBAL_URL + '/manage/album/album/uploadAlbum',
					'width': 80,
					'onUploadSuccess': function (file, data, response) {
						alert(data);
						data = $.parseJSON(data);
						if (response) {
							if (data.state == 'SUCCESS') {
								$('#showPhoto').empty();
								var img = $('<img src="'+data.photoNoExtUrl + "_100x100." + data.fileExt+'"/>');
								$('#showPhoto').append(img);
								$('#addUserForm input[name="userAvatarId"]').val(data.photoId);
							} else {
								$.alertDialog(data.message);
							}
						} else {
							$.alertDialog("发生网络错误");
						}
					}
				});
			}
			
			//对每行的操作自定义
			function rowOp(val,row){
				var html = '';
				html += '<a href="#" onclick="setAuthorityForUser('+row.userId+')">设置菜单权限</a>';
				html += '<a href="#" onclick="setUserRole('+row.userId+')">设置用户角色</a>';
				html += '<a href="#" onclick="updateUserInfo('+row.userId+')">编辑</a>';
				html += '<a href="#" onclick="updateUserPwd('+row.userId+')">修改密码</a>';
				//如果是启动的就开启锁定按钮和封号按钮
				if(row.userState == 1){
					html += '<a href="#" onclick="lockUser('+row.userId+')">锁定</a>';
					html += '<a href="#" onclick="killUser('+row.userId+')">封号</a>';
				}else
					html += '<a href="#" onclick="startUser('+row.userId+')">启用</a>';
				return html;
			}
			
			//修改用户密码
			function updateUserPwd(userId){
				//打开权限设置弹出框
				$('#updateUserPwd').dialog('open');
				//先清空后加载
				$('#updateUserPwdForm').form('clear');
				//每次打开要把roleId传入角色菜单弹出框信息里面去
				$('#updateUserPwdForm input[name="userId"]').val(userId);
			}
			
			//封号操作
			function killUser(userId){
				$.messager.confirm('提醒', '你是否确认要查封此帐号?一旦查封该帐号不能登录平台。', function(r){
					if(r){
						$.post('updateUserInfo', { 'userId':userId,'userState':3} ,function(data){
							eval('var dataJson = '+data);
							if(dataJson.result==true){
								$.messager.show({
									title : '提示',
									msg :'您已成功查封该帐号!'
								});
								$('#userTable').datagrid();
							}else{
								$.messager.show({
									title : '提示',
									msg :'操作失败，请重试!'
								});
							}
						});
					}
				});
			}
			//锁定帐号操作
			function lockUser(userId){
				$.messager.confirm('提醒', '你是否确认要锁定该帐号?一旦锁定该帐号，该帐号就只能查看不能操作。', function(r){
					if(r){
						$.post('updateUserInfo', { 'userId':userId,'userState':2} ,function(data){
							eval('var dataJson = '+data);
							if(dataJson.result==true){
								$.messager.show({
									title : '提示',
									msg :'您已成功锁定该帐号!'
								});
								$('#userTable').datagrid();
							}else{
								$.messager.show({
									title : '提示',
									msg :'操作失败，请重试!'
								});
							}
						});
					}
				});
			}
			//启动帐号操作
			function startUser(userId){
				$.messager.confirm('提醒', '你是否确认要锁定该帐号?一旦锁定该帐号，该帐号就只能查看不能操作。', function(r){
					if(r){
						$.post('updateUserInfo', { 'userId':userId,'userState':1} ,function(data){
							eval('var dataJson = '+data);
							if(dataJson.result==true){
								$.messager.show({
									title : '提示',
									msg :'您已成功恢复该帐号的使用权!'
								});
								$('#userTable').datagrid();
							}else{
								$.messager.show({
									title : '提示',
									msg :'操作失败，请重试!'
								});
							}
						});
					}
				});
			}
			
			//读取性别信息
			function readSex(val,row){
				switch(val){
					case '1':
						return '男';
					case '2':
						return '女';
					case '3':
						return '其他';
					default:
						return '-';
				}
				return '-';
			}
			
			//设置用户菜单权限
			function setAuthorityForUser(userId){
				//打开权限设置弹出框
				$('#setUserMenuJuris').dialog('open');
				//每次打开要把roleId传入角色菜单弹出框信息里面去
				$('#setUserMenuJuris input[name="userId"]').val(userId);
				var setting = {
					check: {
						enable: true
					},
					data: {
						simpleData: {
							enable: true
						}
					}
				};
				$.post('queryMenusByUserId',{'userId':userId},function(data){
					eval('var dataJson = '+data);
					zNodes = dataJson.userMenus;
					
					zTreeNode = $.fn.zTree.init($("#jurisUserMenuTree"), setting, zNodes);
					zTreeNode.expandAll(true);
					var zTree = $.fn.zTree.getZTreeObj("jurisUserMenuTree");
					zTree.setting.check.chkboxType = { "Y":"ps", "N":"ps"};
				});
			}
			
			//设置用户角色信息
			function setUserRole(userId){
				//打开权限设置弹出框
				$('#setUserRole').dialog('open');
				//每次打开要把roleId传入角色菜单弹出框信息里面去
				$('#setUserRole input[name="userId"]').val(userId);
				var setting = {
					check: {
						enable: true
					},
					data: {
						simpleData: {
							enable: true
						}
					}
				};
				$.post('queryRoles',{'userId':userId},function(data){
					eval('var dataJson = '+data);
					zNodes = dataJson.roles;
					
					zTreeNode = $.fn.zTree.init($("#userRoleMenuTree"), setting, zNodes);
					zTreeNode.expandAll(true);
					var zTree = $.fn.zTree.getZTreeObj("userRoleMenuTree");
					zTree.setting.check.chkboxType = { "Y":"ps", "N":"ps"};
				});
			}
			
			//编辑用户信息
			function updateUserInfo(userId){	
				//打开权限设置弹出框
				$('#updateUser').dialog('open');
				//先清空后加载
				$('#updateUserForm').form('clear');
				//每次打开要把roleId传入角色菜单弹出框信息里面去
				$('#updateUserForm input[name="userId"]').val(userId);
				$.post('getUserById', { 'userId':userId } ,function(data){
					eval('var dataJson = '+data);
					if(dataJson.userInfo.photoNoExtUrl)
						var img = $('<img src="'+SITE_GLOBAL_URL+dataJson.userInfo.photoNoExtUrl+"_100x100."+dataJson.userInfo.photoExt+'"/>')
					$('#showUpdateUserPhoto').empty();
					$('#showUpdateUserPhoto').append(img);
					$('#updateUserForm').form('load', dataJson.userInfo);
					$("#uploadUpdateAvater").uploadify({
						'height': 20,
						'fileObjName': 'files',
						'multi': false,
						'formData': {'albumId':3,'photoIsOffic':1,'photoType':4,'sessionId':sessionId},
						'buttonText': '　　上传头像',
						'buttonClass': 'uploadAvaterBtn icon-image',
						'swf': SITE_GLOBAL_URL + '/plug/uploadify/uploadify.swf',
						'uploader': SITE_GLOBAL_URL + '/manage/album/album/uploadAlbum',
						'width': 80,
						'onUploadSuccess': function (file, data, response) {
							data = $.parseJSON(data);
							if (response) {
								if (data.state == 'SUCCESS') {
									$('#showUpdateUserPhoto').empty();
									if(data.photoNoExtUrl){
										var img = $('<img src="'+data.photoNoExtUrl + "_100x100." + data.fileExt+'"/>');
										$('#showUpdateUserPhoto').append(img);
										$('#updateUserForm input[name="userAvatarId"]').val(data.photoId);
									}
								} else {
									$.alertDialog(data.message);
								}
							} else {
								$.alertDialog("发生网络错误");
							}
						}
					});
				});
			}
			
			//带条件查询信息
			function queryTableInfo(){
				$("#userTable").datagrid("load", {
					userLoginId:$('#queryTableInfo input[name="userLoginId"]').val(),
					userCreateTimeStart:$('#queryTableInfo input[name="userCreateTimeStart"]').val(),
					userCreateTimeEnd:$('#queryTableInfo input[name="userCreateTimeEnd"]').val(),
					userState:$('#queryTableInfo input[name="userState"]').val()
		        });
			}
			
			//清空条件
			function clearQueryForm(){
				$('#queryTableInfo').form('clear');
			}
			
			$(function(){
				var pager = $('#userTable').datagrid({
					method: 'POST',
					loadMsg: '数据加载中,请稍候...',
					pagination: true,   
					pageSize: 15,//每页显示的记录条数，默认为10 
					pageList: [15, 30, 45]//可以设置每页记录条数的列表  
				}).datagrid('getPager');	// get the pager of datagrid
				pager.pagination({
					pageSize: 15,//每页显示的记录条数，默认为20
					pageList: [15,30,45] //可以设置每页记录条数的列表 
				});			
			})
			
		</script>
    </body>
</html>
<?php }} ?>
